package com.example.codegen;

public class NewStatement implements Statement {
    public Expression newExpr;

    public NewStatement(Expression newExpr) {
        this.newExpr = newExpr;
    }

    public String toJava() {
        return newExpr.toJava() + ";";
    }

    public String toGo() {
        return newExpr.toGo();
    }

    @Override
    public String toJs() {
        return newExpr.toJs() + ";";
    }

    @Override
    public String toCSharp() {
        return newExpr.toCSharp() + ";";
    }

    @Override
    public String toCJ() {
        return  newExpr.toCJ();
    }
}
